package com.findfuture.demo.service;

import com.findfuture.demo.model.Users;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Alex
 * Date: 11-11-20
 * Time: 下午11:52
 * To change this template use File | Settings | File Templates.
 */
public interface IUsersService {
    Users getUserById(int id) throws Exception;
	Users getUserByName(String name) throws Exception;
	void addOrUpdate(Users user) throws Exception;
	void deleteUser(int userId) throws Exception;
    List<Users> getUsersList() throws Exception;
    List<Users> getUsersListByWhere(String sqlWhere) throws Exception;
    void addUserRelation(int userId, int relationId) throws Exception;
    int getRelationUserId(int userId) throws Exception;
    List<Users> getUserChild(int userId) throws Exception;
    List<Users> getUsersByIds(String ids) throws Exception;
}
